package com.jt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.constraints.NotEmpty;

/**
 * @author jt
 * @date 2024/8/3 16:37
 */
@Data
@ApiModel
@TableName("inventory")
public class Inventory {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @NotEmpty
    @ApiModelProperty(value = "类型")
    private String type;

    @ApiModelProperty(value = "名称")
    private String name;

    //库存
    @ApiModelProperty(value = "库存数量")
    private Integer num;
}
